//
//  JBBasicDataViewModuleController.h
//  JustBen
//
//  Created by YongbinZhang on 10/29/13.
//  Copyright (c) 2013 ZhangYongbin(JustBen). All rights reserved.
//

#import <Foundation/Foundation.h>

#import "JBSystemInfo.h"

@interface JBBasicDataViewModuleController : NSObject

//  加载的数据
@property (nonatomic, copy) id data;

//  是否正在加载数据
@property (nonatomic, assign) BOOL isLoading;

@property (nonatomic, assign) BOOL shouldReload;    //  Defaut is YES
@property (nonatomic, assign) BOOL shouldLoadMore;  //  Default is YES


//  模版方法
//  加载数据
- (void)loadData;
- (void)loadDataWithSuccess:(void (^)())success failure:(void (^)(NSInteger errorCode, NSString *errorMsg))failure;
- (void)loadDataSuccessedWithData:(id)data;
- (void)loadDataFailed;

@end
